package vo;

import java.util.List;

public class Deptt {
    private Integer deptid;
    private String deptname;
    private Integer locid;

    private Loc loc;
    public Loc getLoc() {return loc;}//用于从员工到地区的查询
    public void setLoc(Loc loc) {this.loc = loc;}

    private List<Empp> empps;
    public List<Empp> getEmpps() {return empps;}//用于从地区到员工和从部门到员工再到地区的查询
    public void setEmpps(List<Empp> empps) {this.empps = empps;}


    public Integer getDeptid() {
        return deptid;
    }

    public void setDeptid(Integer deptid) {
        this.deptid = deptid;
    }

    public String getDeptname() {
        return deptname;
    }

    public void setDeptname(String deptname) {
        this.deptname = deptname;
    }

    public Integer getLocid() {
        return locid;
    }

    public void setLocid(Integer locid) {
        this.locid = locid;
    }

    public Deptt() {
    }


    @Override
    public String toString() {
        return "Deptt{" +
                "deptid=" + deptid +
                ", deptname='" + deptname + '\'' +
                ", locid=" + locid +
                ", loc=" + loc +
                ", empps=" + empps +
                '}';
    }
}
